<template>
  <Panel title="类型" sub-title="选择丰富" >
    <template v-slot:right>
      <a href="javascript:;" class="el-icon-arrow-left prev"></a>
      <a href="javascript:;" class="el-icon-arrow-right next"></a>
    </template>
    <div class="box" ref="box">
      <ul class="list" >
        <li v-for="i in 6" :key="i">
          <RouterLink to="/">
            <img src="../../../assets/images/9619200610858971.jpg" alt="">
          </RouterLink>
        </li>
      </ul>
    </div>
  </Panel>
</template>

<script>
import Panel from '../Panel'
export default {
  name: 'HomeType',
  components: { Panel }
}
</script>

<style scoped lang='less'>
.home-panel {
  background:#f5f5f5;
  width:1350px;
  margin: 0 auto;
}
.el-icon-arrow-left {
  text-decoration: none;
  width: 30px;
  height: 30px;
  background: #ccc;
  color: #fff;
  display: inline-block;
  text-align: center;
  margin-left: 5px;
  background: #333;
  &::before {
    font-size: 12px;
    position: relative;
    top: 5px
  }
  &.disabled {
    background: #ccc;
    cursor: not-allowed;
  }
}
.el-icon-arrow-right {
   text-decoration: none;
  width: 30px;
  height: 30px;
  background: #ccc;
  color: #fff;
  display: inline-block;
  text-align: center;
  margin-left: 5px;
  background: #333;
  &::before {
    font-size: 12px;
    position: relative;
    top: 5px
  }
  &.disabled {
    background: #ccc;
    cursor: not-allowed;
  }
}
.box {
  display: flex;
  width: 100%;
  height: 345px;
  overflow: hidden;
  padding-bottom: 40px;
  .list {
    width: 200%;
    display: flex;
    transition: all 1s;
    li {
      margin-right: 10px;
      list-style: none;
      // width: 240px;
      // &:nth-child(5n) {
      //   margin-right: 0;
      // }
      img {
        width: 300px;
        height: 305px;
      }
    }
  }
}
</style>
